<local:DocumentBase x:Class="WPFExcelReport.TYTWV04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBBST"
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWGBST"
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWBDAT"
                    xmlns:WDK="clr-namespace:WPFExcelReport;assembly=TWDECK"
                    xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM"
                    xmlns:VVT="clr-namespace:WPFExcelReport;assembly=TVVTLIEF"
                    xmlns:VV="clr-namespace:WPFExcelReport;assembly=TVVLIEF"
                    xmlns:VP="clr-namespace:WPFExcelReport;assembly=TVVPACK"
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TWAFARBEN"
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF"
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:VRP="clr-namespace:WPFExcelReport;assembly=TVRPOS" 
                     xmlns:me="clr-namespace:WPFExcelReport"
                    Name="TV"
                    FontSize="14" 
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <ex:TBUSY Grid.Row="1" Grid.RowSpan="2" IsBusy="{Binding IsBusy,ElementName=TV}"/>  
          <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Name="ZoneVK">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <VKK:TVKKVV Grid.Row="0" Grid.Column="0" Name="cVK04" 
                        IsZoneWBFull="{Binding IsWBFull,ElementName=TV}"
                         IsVV="True" 
                         IsMTR="True"
                         MinWidth="200" MinHeight="50" AUFART="{Binding FART,ElementName=TV}"
                        /> 
            <VKP:TVKPVV Grid.Row="2" Grid.Column="0" Name="cVK05" 
                        IsVV="True" dwVKK="{Binding dwVKK,ElementName=cVK04}"   
                        MinWidth="200" MinHeight="50" />
            <StackPanel Grid.Row="0" Grid.RowSpan="3" Grid.Column="1">
                <WrapPanel>
                    <TextBlock Grid.Column="2" VerticalAlignment="Top" Visibility="Collapsed" >在CP+CW+KO</TextBlock>
                    <CheckBox IsChecked="{Binding CheckCPK,ElementName=TV}" Visibility="Collapsed"/>
                    <TextBlock Grid.Column="2" VerticalAlignment="Top" Visibility="Collapsed">在CP+CW</TextBlock>
                    <CheckBox IsChecked="{Binding CheckCPCW,ElementName=TV}" Visibility="Collapsed"/>
                    <TextBlock Grid.Column="2" VerticalAlignment="Top" Visibility="Collapsed">在CP</TextBlock>
                    <CheckBox IsChecked="{Binding CheckCP,ElementName=TV}" Visibility="Collapsed"/>
                    <TextBlock Grid.Column="2" VerticalAlignment="Top" Visibility="Collapsed">在CW</TextBlock>
                    <CheckBox IsChecked="{Binding CheckCW,ElementName=TV}" Visibility="Collapsed"/>
                    <Button Click="btnPrintPK_Click"  Grid.Column="1" Height="25" Margin="20,0,0,0" Width="30" VerticalAlignment="Top" >
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Print.png" />
                        </Button.Background>
                    </Button>
                    <TextBox Grid.Column="3" Name="txtLang" CharacterCasing="Upper" VerticalAlignment="Top" >打印发货单</TextBox>
                </WrapPanel>
                <VVT:TVVTLIEF  IsWBREQ="True" 
                               IsAuto="True"
                               Name="cVVT"  
                               VKP="{Binding AUF,ElementName=cVK05}"
                               KEY="{Binding VVT,ElementName=TV}"
                               />
                <VV:TVVLIEF   Name="cSVV" 
                               VVT="{Binding KEY,ElementName=cVVT}" 
                              /> 
            </StackPanel> 
        </Grid>
        <Grid Grid.Row="2" Name="ZoneWB"> 
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <WB:TWZ09   Grid.Column="0"  Name="cWZ09" IsCanDelete="True"    IsCanNew="True"     
                        IsZoneWBFull="{Binding IsWBFull,ElementName=TV}"
                        FTAUTOSUM="True"
                        SKEY1="WBBART"
                        KEY1="WBBISTKLG"
                        TKEY1="总长度"
                        IsPage="True"
                        Rows="50"
                        IsBusy="{Binding IsBusy,ElementName=TV}"  
                         ORDERNUM="{Binding KEY,ElementName=cVVT}"
                        WB61VVT="{Binding VVT,ElementName=cWV03}"
                        IsNOTFull="{Binding IsNOTFull,ElementName=cVK05}"
                        IsFreeWB="True"
                      />
            <WB:TWBVV03  Grid.Column="1"  
                         IsZoneWBFull="{Binding IsWBFull,ElementName=TV}"
                         Name="cWV03" IsCanNew="True"   
                         LO="{Binding LO,ElementName=cWZ09}"
                         LB="{Binding LB,ElementName=cWZ09}"
                         IsPage="True"
                         Rows="50"
                         FTAUTOSUM="True"
                         SKEY1="WBBART" 
                         KEY1="WBBISTKLG"
                         VVT="{Binding VVT,ElementName=cVVT}"
                         IsBusy="{Binding IsBusy,ElementName=TV}"  
                         ORDERNUM="{Binding KEY,ElementName=cVVT}"
                         Is2CW="True"
                         /> 
        </Grid>
    </Grid>
</local:DocumentBase>
